import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "about",
    component: () => import("../layouts/index.vue"),
    meta: {
      title: "",
      hidden: false,
      icon: "",
    },
    redirect: "/home",
    children: [
      {
        path: "/home",
        name: "home",
        component: () => import("@/views/Home/Home.vue"),
        meta: {
          title: "首页",
          hidden: false,
          icon: "",
        },
      },
      {
        path:"/life",
        name:"life",
        component: () => import("../views/Life/Life.vue")
      }
    ],
  },
 
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
